
<?php
	
	session_start();

	$username=$_SESSION['username'];
	$t=$_GET["rolearray"];
	$rolegamearray = unserialize($t);
	//print_r($rolegamearray);
	$arraysize=count($rolegamearray);
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by CGWORLD.ASIA

http://cgworld.asia

Name       : Wellness  
Description: A two-column, fixed-width design with dark color scheme.
Version    : 1.0
Released   : 20100110

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Wellness   by Free CSS Templates</title>
<link rel="shortcut icon"href="http://www.cgworld.asia/favicon.ico"type="image/x-icon">
<link rel="icon"href="http://www.cgworld.asia/favicon.ico"type="image/x-icon">
<link href="../style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
	<div id="header-wrapper">
	<div id="header">
		<div id="logo">
			<h1><a href="#">ALMAS   </a></h1>
			<p> design by IUST students</p>
		</div>
	</div>
	</div>
	<!-- end #header -->
	<div id="page">
	<div id="page-bgtop">
	<div id="page-bgbtm">
		<div id="content">
			<div class="post">
				<h2 class="title"><a href="#">Welcome to Almas   </a></h2>
				<p class="meta"><span class="date">July 26, 2013</span><span class="posted">Posted by <a href="#">Admin</a></span></p>
				<div style="clear: both;">&nbsp;</div>
				<b><font size="+1">Select You Role in the Game</font></b>
			</div>
           <table width="500" >
           <tr>
           		<td>select</td>
           		<td>GameName</td>
                <td>Role</td>
           </tr>
			<?php
				$i=1;
				foreach($rolegamearray as $key=>$value)
				{
					?>
                    <tr>
                    <td><?php echo "<a href='../userpage/user_page.php?gamename=$key&amp;role=$value' />$i</a>";?></td>
					<td><?php echo $key;?></td>
					<td><?php echo $value;?></td>
                    
                    
                    </tr>
                    <?php
					$i++;
                }
				
			?>
            </table>
			
		
		</div>
		<!-- end #content -->
		<div id="sidebar">
			<ul>
				<li>
					<div id="search" >
					<form method="get" action="#">
					</form>
					</div>
					<div style="clear: both;">&nbsp;</div>
				</li>
				
				<li>
					<h2>Categories</h2>
					<ul>
						<li><a href="#">HomePage</a></li>
						<li><a href="#">News</a></li>
						<li><a href="#">Top Projects</a></li>
						<li><a href="#">Recently Projects</a></li>
						<li><a href="#">Logout</a></li>
						
					</ul>
				</li>
				
				
			</ul>
		</div>
		<!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	</div>
	<!-- end #page -->
</div>
	
	<!-- end #footer -->
</body>
</html>
